package com.clever.springssm.vo;

/**
 * @author ChenWang
 * @className CartsVo
 * @date 2020/10/30 16:55
 * @since JDK 1.8
 */
//view object 这里是封装用来传给前端的数据类
    //使用的目的是为了保护数据库的结构
public class CartsVo {
    /**
     * 主键
     */
    private Integer cartsId;

    /**
     * 商品的数量
     */
    private Integer quantity;

    /**
     *
     */
    private Integer productId;

    /**
     * 用户的ID
     */
    private Integer userId;

    public Integer getCartsId() {
        return cartsId;
    }

    public void setCartsId(Integer cartsId) {
        this.cartsId = cartsId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

}
